# -*- coding: utf-8 -*-
# @Time    : 2018/8/15 16:26
# @Author  : 聂家利
# @Email   : 1073438012@qq.com
# @File    : helper.py
# @Software: PyCharm
import os
from its_auth.config import config


def is_d_or_other(filname):
    if os.path.isfile(filname):
        root_dir = filname.split('/')[0]
        if root_dir == config['D_dish'] or root_dir == config['D_dish']+':':
            return 1
    return 0